﻿<UserControl x:Class="LiSAClient.WpfClient.View.Frame.MetaInfoBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" 
             d:DesignWidth="500" Visibility="{Binding IsVisible, Converter= {StaticResource boolToVisibilityConverter}}"
             >
    <Border Style="{StaticResource MetaInfoBorderStyle}">
        <ItemsControl ItemsSource="{Binding MetaInfos}">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <StackPanel Margin="7,0" Orientation="Horizontal" Height="30">
                        <Image Style="{StaticResource MetaInfoImage}" Margin="0" />
                        <TextBlock Text="{Binding Text}" Style="{StaticResource MetaInfoTextStyle}"/>
                    </StackPanel>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </Border>
</UserControl>
